package com.ai.gcf.api.base.util;

import java.util.Random;

public class RandomUtil {
	/**
     * 随机产生6位数数字
     * @param 
     * @return String
     * @author zhuangdd
     */
	public static String getRandom(){
		Random ran = new Random();
		int in[] = new int[6];
		in[0] = ran.nextInt(10);
		in[1] = ran.nextInt(10);
		in[2] = ran.nextInt(10);
		in[3] = ran.nextInt(10);
		in[4] = ran.nextInt(10);
		in[5] = ran.nextInt(10);
		String strRandom=String.valueOf(in[0])+String.valueOf(in[1])+String.valueOf(in[2])+String.valueOf(in[3])+String.valueOf(in[4])+String.valueOf(in[5]);
		return strRandom;
	}
		
	public static void main(String[] args) {
		System.out.println(RandomUtil.getRandom());
	}
}
